ICT FVG & Swing Detector Basic by Trader RiazICT FVG & Swing Detector Basic by Trader Riaz 
 Unlock Precision Trading with the Ultimate Fair Value Gap (FVG) and Swing Detection Tool! 
Developed by  Trader Riaz , the ICT FVG and Swing Detector Basic is a powerful Pine Script indicator designed to help traders identify key market structures with ease. Whether you're a day trader, swing trader, or scalper, this indicator provides actionable insights by detecting  Bullish and Bearish Fair Value Gaps (FVGs)  and  Swing Highs/Lows  on any timeframe. Perfect for trading forex, stocks, crypto, and more on TradingView!
 Key Features: 
 1: Bullish and Bearish FVG Detection
    - Automatically identifies Bullish FVGs (highlighted in green) and Bearish FVGs (highlighted in red) to spot potential reversal or continuation zones.
    - Displays FVGs as shaded boxes with a dashed midline at 70% opacity, making it easy to see the midpoint of the gap for precise entries and exits.
    - Labels are placed inside the FVG boxes at the extreme right for clear visibility.
 2: Customizable FVG Display
    - Control the number of Bullish and Bearish FVGs displayed on the chart with user-defined inputs (fvg_bull_count and fvg_bear_count).
    - Toggle the visibility of Bullish and Bearish FVGs with simple checkboxes (show_bull_fvg and show_bear_fvg) to declutter your chart.
 3: Swing High and Swing Low Detection
    - Detects Swing Highs (blue lines) and Swing Lows (red lines) to identify key market turning points.
    - Labels are positioned at the extreme right edge of the lines for better readability and alignment.
    - Customize the number of Swing Highs and Lows displayed (swing_high_count and swing_low_count) to focus on the most recent market structures.
 4: Fully Customizable Display
    - Toggle visibility for Swing Highs and Lows (show_swing_high and show_swing_low) to suit your trading style.
    - Adjust the colors of Swing High and Low lines (swing_high_color and swing_low_color) to match your chart preferences.
 5: Clean and Efficient Design
    - Built with Pine Script v6 for optimal performance on TradingView.
    - Automatically removes older FVGs and Swing points when the user-defined count is exceeded, keeping your chart clean and focused.
    - Labels are strategically placed to avoid clutter while providing clear information.
 Why Use This Indicator? 
 Precision Trading:  Identify high-probability setups with FVGs and Swing points, commonly used in Smart Money Concepts (SMC) and Institutional Trading strategies.
 User-Friendly:  Easy-to-use inputs allow traders of all levels to customize the indicator to their needs.
 Versatile:  Works on any market (Forex, Stocks, Crypto, Commodities) and timeframe (1M, 5M, 1H, 4H, Daily, etc.).
 Developed by Trader Riaz:  Backed by the expertise of Trader Riaz, a seasoned trader dedicated to creating tools that empower the TradingView community.
 How to Use: 
 - Add the Custom FVG and Swing Detector to your chart on TradingView.
 - Adjust the input settings to control the number of FVGs and Swing points displayed.
 - Toggle visibility for Bullish/Bearish FVGs and Swing Highs/Lows as needed.
 - Use the identified FVGs and Swing points to plan your trades, set stop-losses, and target key levels.
 Ideal For: 
 - Traders using Smart Money Concepts (SMC), Price Action, or Market Structure strategies.
 - Those looking to identify liquidity grabs, imbalances, and trend reversals.
 - Beginners and advanced traders seeking a reliable tool to enhance their technical analysis.
Happy trading!
Cerca negli script per "high low"
BRT CHARTS MTFDescription of the Indicator 
This indicator is designed to visualize and analyze price movements across multiple timeframes simultaneously. It displays candles from selected time intervals directly on the current chart, allowing traders to quickly assess market conditions without switching between different timeframes. This is particularly useful for traders who use multi-timeframe analysis to make trading decisions.
 Key Features of the Indicator: 
1.  Displaying Candles from Multiple Timeframes: 
   - The indicator allows you to select three timeframes (e.g., 1 hour, 4 hours, and 1 day) and displays their candles on the current chart. This helps to see the overall market picture without switching between charts.
   - Candles are displayed as vertical columns, each containing the body and wicks (shadows) of the candle. The colors of the candles (green for bullish and red for bearish) are customizable.
2.  Dynamic Updates: 
   - The indicator automatically updates the candles as new data arrives, allowing you to track market changes in real time.
3.  Customizable Number of Candles: 
   - The user can choose how many candles to display for each timeframe (default is 4 candles). This allows the indicator to be adapted to individual needs.
4.  Range Display (High/Low): 
   - The indicator can show High and Low levels for each timeframe, helping to identify key support and resistance levels.
   - It is also possible to display the Mid level (average between High and Low), which can be useful for identifying consolidation zones.
5.  Data Table: 
   - The indicator supports displaying a table with key levels (High, Low, Mid) for each timeframe. The table can be placed in any corner of the chart, and its size and text/background colors are customizable.
6.  Flexible Appearance Settings: 
   - The user can customize the colors of the candles, their wicks, High/Low/Mid levels, as well as the placement of the columns on the chart.
 How the Indicator Helps in Trading: 
-  Multi-Timeframe Analysis:  The indicator allows you to analyze multiple timeframes simultaneously, helping to better understand the overall trend and find entry points. For example, if the trend is bullish on the daily timeframe and there is a correction on the hourly timeframe, this could be a good opportunity to buy.
-  Identifying Key Levels:  Displaying High, Low, and Mid levels helps quickly identify support and resistance zones, which is useful for setting stop-loss and take-profit levels.
-  Time-Saving:  The indicator eliminates the need to switch between timeframes, speeding up the analysis and decision-making process.
-  Visual Clarity:  Visualizing candles from different timeframes on a single chart makes analysis more convenient and intuitive.
 Example Use Cases: 
1.  Trend Trading:  If a clear uptrend is visible on the daily timeframe and a correction is occurring on the hourly timeframe, you can look for buy opportunities near support levels.
2.  Range Trading:  If the price is moving sideways across all timeframes, you can use High and Low levels to trade from the boundaries of the range.
3.  Identifying Reversal Points:  If the price approaches a key resistance level on the higher timeframe and a bearish candle forms on the lower timeframe, this could be a signal to sell.
 Conclusion: 
This indicator is a powerful tool for traders who use multi-timeframe analysis. It helps quickly assess market conditions, identify key levels, and make informed trading decisions. Thanks to its flexible settings, the indicator can be adapted to any trading style and visualization preferences.
Casa_VolumeProfileSessionLibrary   "Casa_VolumeProfileSession" 
Analyzes price and volume during regular trading hours to provide a session volume profile,
including Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL).
Calculates and displays these levels historically and for the developing session.
Offers customizable visualization options for the Value Area, POC, histogram, and labels.
Uses lower timeframe data for increased accuracy and supports futures sessions.
The number of rows used for the volume profile can be fixed or dynamically calculated based on the session's price range and the instrument's minimum tick increment, providing optimal resolution.
 calculateEffectiveRows(configuredRows, dayHigh, dayLow) 
  Determines the optimal number of rows for the volume profile, either using the configured value or calculating dynamically based on price range and tick size
  Parameters:
     configuredRows (int) : User-specified number of rows (0 means auto-calculate)
     dayHigh (float) : Highest price of the session
     dayLow (float) : Lowest price of the session
  Returns: The number of rows to use for the volume profile
 debug(vp, position) 
  Helper function to write some information about the supplied SVP object to the screen in a table.
  Parameters:
     vp (Object) : The SVP object to debug
     position (string) : The position.* to place the table. Defaults to position.bottom_center
 getLowerTimeframe() 
  Depending on the timeframe of the chart, determines a lower timeframe to grab volume data from for the analysis
  Returns: The timeframe string to fetch volume for
 get(volumeProfile, lowerTimeframeHigh, lowerTimeframeLow, lowerTimeframeVolume, lowerTimeframeTime, lowerTimeframeSessionIsMarket) 
  Populated the provided SessionVolumeProfile object with vp data on the session.
  Parameters:
     volumeProfile (Object) : The SessionVolumeProfile object to populate
     lowerTimeframeHigh (array) : The lower timeframe high values
     lowerTimeframeLow (array) : The lower timeframe low values
     lowerTimeframeVolume (array) : The lower timeframe volume values
     lowerTimeframeTime (array) : The lower timeframe time values
     lowerTimeframeSessionIsMarket (array) : The lower timeframe session.ismarket values (that are futures-friendly)
 drawPriorValueAreas(todaySessionVolumeProfile, extendYesterdayOverToday, showLabels, labelSize, pocColor, pocStyle, pocWidth, vahlColor, vahlStyle, vahlWidth, vaColor) 
  Given a SessionVolumeProfile Object, will render the historical value areas for that object.
  Parameters:
     todaySessionVolumeProfile (Object) : The SessionVolumeProfile Object to draw
     extendYesterdayOverToday (bool) : Defaults to true
     showLabels (bool) : Defaults to true
     labelSize (string) : Defaults to size.small
     pocColor (color) : Defaults to #e500a4
     pocStyle (string) : Defaults to line.style_solid
     pocWidth (int) : Defaults to 1
     vahlColor (color) : The color of the value area high/low lines. Defaults to #1592e6
     vahlStyle (string) : The style of the value area high/low lines. Defaults to line.style_solid
     vahlWidth (int) : The width of the value area high/low lines. Defaults to 1
     vaColor (color) : The color of the value area background. Defaults to #00bbf911)
 drawHistogram(volumeProfile, bgColor, showVolumeOnHistogram) 
  Given a SessionVolumeProfile object, will render the histogram for that object.
  Parameters:
     volumeProfile (Object) : The SessionVolumeProfile object to draw
     bgColor (color) : The baseline color to use for the histogram. Defaults to #00bbf9
     showVolumeOnHistogram (bool) : Show the volume amount on the histogram bars. Defaults to false.
 Object 
  Object Contains all settings and calculated values for a Volume Profile Session analysis
  Fields:
     numberOfRows (series int) : Number of price levels to divide the range into. If set to 0, auto-calculates based on price range and tick size
     valueAreaCoverage (series int) : Percentage of total volume to include in the Value Area (default 70%)
     trackDevelopingVa (series bool) : Whether to calculate and display the Value Area as it develops during the session
     valueAreaHigh (series float) : Upper boundary of the Value Area - price level containing specified % of volume
     pointOfControl (series float) : Price level with the highest volume concentration
     valueAreaLow (series float) : Lower boundary of the Value Area
     startTime (series int) : Session start time in Unix timestamp format
     endTime (series int) : Session end time in Unix timestamp format
     dayHigh (series float) : Highest price of the session
     dayLow (series float) : Lowest price of the session
     step (series float) : Size of each price row (calculated as price range divided by number of rows)
     pointOfControlLevel (series int) : Index of the row containing the Point of Control
     valueAreaHighLevel (series int) : Index of the row containing the Value Area High
     valueAreaLowLevel (series int) : Index of the row containing the Value Area Low
     lastTime (series int) : Tracks the most recent timestamp processed
     volumeRows (map) : Stores volume data for each price level row (key=row number, value=volume)
     ltfSessionHighs (array) : Stores high prices from lower timeframe data
     ltfSessionLows (array) : Stores low prices from lower timeframe data
     ltfSessionVols (array) : Stores volume data from lower timeframe data
MACD Highs and Lows - Dynamic Support & ResistanceDescription:
Enhance your trading strategy with the MACD Highs and Lows indicator, designed to identify dynamic support and resistance levels based on MACD crossovers. This tool plots key price levels triggered by shifts in MACD momentum, helping traders spot potential reversal zones, breakout points, and trend confirmation signals.
Key Features
Dynamic Levels: Automatically plots recent highs/lows when MACD crosses above/below the zero line.
Customizable MACD Parameters:
Adjustable fast/slow lengths (default: 12/26).
Choose between SMA or EMA for oscillator/signal line.
Flexible signal smoothing (1-50 periods).
Visual Clarity:
Clear green/red lines for highs and lows.
Tracks both price extremes and adjacent candle levels (e.g., high-of-low-bar, low-of-high-bar).
Multi-Timeframe Utility: Works across charts for swing trading, scalping, or trend analysis.
How It Works
Bullish Signal: When MACD crosses above zero, the indicator marks the recent lowest low (support) and its corresponding high.
Bearish Signal: When MACD crosses below zero, it plots the recent highest high (resistance) and its corresponding low.
Levels persist until the next crossover, creating actionable reference zones.
Use Cases
Trend Confirmation: Validate breakouts when price closes above/below plotted levels.
Stop Loss Placement: Set stops beyond recent dynamic highs/lows.
Divergence Detection: Spot discrepancies between MACD momentum and price action.
Settings Tips:
Increase Fast Length for responsiveness or Slow Length for smoother signals.
Use EMA for faster reactions, SMA for reduced noise.
[SHORT ONLY] 10 Bar Low Pullback█ STRATEGY DESCRIPTION
The "10 Bar Low Pullback" strategy is a contrarian short trading system designed to capture pullbacks after a new 10‐bar low is made. it identifies a potential short opportunity when the current bar’s low breaks below the lowest low of the previous 10 bars, provided that the bar exhibits strong internal momentum as measured by its IBS value. An optional trend filter further refines entries by requiring that the close is below a 200-period EMA.
█ WHAT IS INTERNAL BAR STRENGTH (IBS)?
Internal Bar Strength (IBS) measures where the closing price falls within the high-low range of a bar. It is calculated as:
 ibs = (close - low) / (high - low) 
- Low IBS (≤ 0.2): Indicates the close is near the bar's low, suggesting oversold conditions.
- High IBS (≥ 0.8): Indicates the close is near the bar's high, suggesting overbought conditions.
█ SIGNAL GENERATION
1. SHORT ENTRY
A Short Signal is triggered when:
 
 The current bar’s low is below the lowest low of the past X bars (default: 10).
 The bar’s IBS is greater than the specified threshold (default: 0.85).
 The signal occurs within the defined trading window (between Start Time and End Time).
 If the EMA Filter is enabled, the close must be below the 200-period EMA.
 
2. EXIT CONDITION
 
 An exit Signal is generated when the current close falls below the previous bar’s low (close < low ), indicating a potential bearish reversal and prompting the strategy to close its short position.
 
█ ADDITIONAL SETTINGS
 
 Lookback Period: Defines the number of bars (default is 10) over which the lowest low is calculated.
 IBS Threshold: Sets the minimum required IBS value (default is 0.85) to qualify as a pullback.
 Trading Window: Trades are only executed between the user-defined Start Time and End Time.
 EMA Filter (Optional): When enabled, short entries are only considered if the current close is below the 200-period EMA, with the EMA period being adjustable (default is 200).
 
█ PERFORMANCE OVERVIEW
 
 Designed for shorting opportunities, this strategy aims to capture pullbacks following an aggressive 10-bar low break.
 It leverages a combination of a lookback low and IBS measurement to identify overextended bullish moves that may revert.
 The optional EMA filter helps confirm a bearish market environment by ensuring the price remains under the trend line.
 Suitable for use on various assets, including stocks and ETFs, on daily or similar timeframes.
 Backtesting and parameter optimization are recommended to tailor the strategy to specific market conditions.
Previous Hour High and Low### **🔷 Previous Hour High & Low Indicator – Description**  
#### 📌 **Overview**  
The **Previous Hour High & Low Indicator** is designed to help traders identify key levels from the last completed hourly candle. These levels often act as **support and resistance zones**, helping traders make informed decisions about potential breakouts, reversals, and liquidity grabs.  
#### 🎯 **How It Works**  
- At the start of every new hour, the indicator **locks in** the **high and low** from the **previous fully completed hour**.  
- It then **draws horizontal lines** on the chart, marking these levels.  
- Works **only on intraday timeframes** (e.g., 1m, 5m, 15m, 30m), ensuring clean and relevant levels.  
- Updates dynamically **every new hour** without repainting.  
#### 🔑 **Why Is This Useful?**  
✔ **Identifies Key Liquidity Zones** – The market often reacts to previous hour highs/lows, making them useful for stop hunts, liquidity grabs, and order block setups.  
✔ **Works Well with ICT Concepts** – If you're trading **ICT kill zones**, these levels can help in finding optimal trade entries.  
✔ **Helps with Breakout & Rejection Setups** – Traders can watch for price breaking or rejecting these levels for trade confirmation.  
✔ **Useful for Scalping & Day Trading** – Works best for short-term traders looking for intraday movements.  
#### ⚙ **Customization Options**  
- The high and low levels are color-coded:  
  🔵 **Previous Hour High (Blue)** → Acts as potential resistance or breakout point.  
  🔴 **Previous Hour Low (Red)** → Acts as potential support or breakdown level.  
#### 📊 **Best Timeframes to Use This On**  
- **1-minute, 5-minute, 15-minute, 30-minute charts** → Most effective for intraday trading.  
- Avoid using on **hourly or higher timeframes**, as these levels become less relevant.  
---
🚀 **This indicator is perfect for traders looking to track short-term price reactions at key levels.** Let me know if you want to add alerts, zone shading, or any other enhancements! 🔥
[GrandAlgo] MTF Historical Highs and LowsMany traders rely on weekly highs and lows to identify key market levels, but what if you could see how price reacted to these levels in past weeks, months, or even years? With MTF Historical Highs and Lows, you can visualize all past highs, lows, and midpoints from any timeframe, allowing you to refine your strategy and make more informed trading decisions.
This indicator retrieves and plots historical highs, lows, and midpoints based on a user-selected timeframe (default: Weekly). It dynamically updates, ensuring that all significant price levels remain visible on your chart. Additionally, smart filtering helps you focus only on relevant levels, and alerts notify you when price interacts with key zones.
 Key Features: 
✅ Automatically Fetches & Plots Historical Highs, Lows, and Midpoints
✅ Customizable Timeframes (default: Weekly, but adjustable)
✅ Visibility Filtering – Hides lines that are too far from the current price
✅ Alerts for Key Levels – Get notified when price touches an important historical level
✅ Customizable Colors & Display Preferences for clarity
 How It Works: 
1️⃣ Select a Date Range – Focus on historical levels that are most relevant to the current market conditions
  
2️⃣ Choose a Timeframe – Use Weekly, Monthly, or any timeframe that suits your strategy.
3️⃣ Enable Highs, Lows, and Midpoints – Customize what you want to see.
  
4️⃣ Adjust Filtering – Hide lines that are too far from the current price to reduce clutter.
  
5️⃣ Get Alerts – Be notified when price reaches a historical level for potential trade setups.
Ideal for Traders Who:
 
  Trade Support & Resistance Levels – Understand how price reacts at historical highs and lows.
  Analyze Market Structure – Identify key areas where price may reverse or break out.
  Want Smart Alerts – Stay informed without staring at charts all day.
 
HTF RangeThis Pine Script indicator,  HTF Range , is a tool designed to help traders visualize predefined ranges (highs and lows) and analyze price action within those levels. It's particularly useful for identifying key levels and trends for a set of pre-configured assets, such as cryptocurrencies, stocks, and forex pairs.
 Key Features: 
 1. Predefined Symbol Ranges: 
 
 Stores a list of assets (tickers) with corresponding high, low, and trend information in an array.
 Automatically matches the current symbol on the chart (syminfo.ticker) to fetch and display relevant range data:
     High Range: The upper price level.
     Low Range: The lower price level.
     Trend: Indicates whether the trend is "up" or "down."
 Example tickers: BTCUSDT, ETHUSDT, GBPUSD, NVDA, and more.
 
 2. Range Visualizations: 
 
 Extremeties: Draws dashed horizontal lines for the high and low levels.
 Half-Level: Marks the midpoint of the range with a dashed yellow line.
 Upper and Lower Quarters: Highlights upper and lower portions of the range using shaded boxes with customizable extensions:
 
 3. Configurable Inputs: 
 
 Enable/Disable Levels: Toggles for extremeties, half-levels, and quarter-levels.
 Table Info: Option to display a table summarizing the range data (symbol, high, low, and trend).
 
 4. Dynamic Calculations: 
 
 Automatically calculates the difference between the high and low (diff) for precise range subdivisions.
 Dynamically adjusts visuals based on the trend (up or down) for better relevance to the market condition.
 
 5. Table Display: 
 
 Provides a detailed summary of the asset's range and trend in the top-right corner of the chart:
     Symbol ticker.
     High and low levels.
     Overall trend direction.
 
 Use Case: 
This indicator is ideal for traders who:
 
 Trade multiple assets and want a quick overview of key price ranges.
 Analyze price movements relative to predefined support and resistance zones.
 Use range-based strategies for trend following, breakout trading, or reversals.
JJ Highlight Time Ranges with First 5 Minutes and LabelsTo effectively use this Pine Script as a  day trader , here’s how the various elements can help you manage trades, track time sessions, and monitor price movements:
 Key Components for a Day Trader: 
 1. First 5-Minute Highlight: 
   -  Purpose:  Day traders often rely on the first 5 minutes of the trading session to gauge market sentiment, watch for opening price gaps, or plan entries. This script draws a horizontal line at the high or low of the first 5 minutes, which can act as a key level for the rest of the day.
    - How to Use:  If the price breaks above or below the first 5-minute line, it can signal momentum. You might enter a long position if the price breaks above the first 5-minute high or a short if it breaks below the first 5-minute low.
 2. Session Time Highlights: 
    - Morning Session (9:15–10:30 AM):  The market often shows its strongest price action during the first hour of trading. This session is highlighted in  yellow.  You can use this highlight to focus on the most volatile period, as this is when large institutional moves tend to occur.
    - Afternoon Session (12:30–2:55 PM):  The  blue  highlight helps you track the mid-afternoon session, where liquidity may decrease, and price action can sometimes be choppier. Day traders should be more cautious during this period.
   -  How to Use:  By highlighting these key times, you can:
     - Focus on key breakouts during the morning session.
     - Be more conservative in your trades during the afternoon, as market volatility may drop.
 3. Dynamic Labels: 
    - Top/Bottom Positioning:  The script places labels dynamically based on the selected position (Top or Bottom). This allows you to quickly glance at the session's start and identify where you are in terms of time.
    - How to Use:  Use these labels to remind yourself when major time segments (morning or afternoon) begin. You can adjust your trading strategy depending on the session, e.g., being more aggressive in the morning and more cautious in the afternoon.
 Trading Strategy Suggestions: 
 1. Momentum Trades: 
   - After the first 5 minutes, use the high/low of that period to set up breakout trades.
     -  Long Entry:  If the price breaks the high of the first 5 minutes (especially if there's a strong trend).
      - Short Entry:  If the price breaks the low of the first 5 minutes, signaling a potential downtrend.
   
 2. Session-Based Strategy: 
   -  Morning Session  (9:15–10:30 AM):
     - Look for  strong breakout patterns  such as support/resistance levels, moving average crossovers, or candlestick patterns (like engulfing candles or pin bars).
     -  This is a high liquidity period,  making it ideal for executing quick trades.
   -  Afternoon Session  (12:30–2:55 PM):
     - The market tends to consolidate or show less volatility.  Scalping  and  mean-reversion strategies  work better here.
     - Avoid chasing big moves unless you see a clear breakout in either direction.
 3. Support and Resistance: 
   - The first 5-minute high/low often acts as a key  support  or  resistance  level for the rest of the day. If the price holds above or below this level, it’s an indication of trend continuation.
   
 4. Breakout Confirmation: 
   - Look for breakouts from the highlighted session time ranges (e.g., 9:15 AM–10:30 AM or 12:30 PM–2:55 PM).
   - If a breakout happens during a key time window, combine that with other technical indicators like  volume spikes ,  RSI , or  MACD  for confirmation.
---
 Example Day Trader Usage: 
 1. First 5 Minutes Strategy:  After the market opens at 9:15 AM, watch the price action for the first 5 minutes. The high and low of these 5 minutes are critical levels. If the price breaks above the high of the first 5 minutes, it might indicate a strong bullish trend for the day. Conversely, breaking below the low may suggest bearish movement.
 2. Morning Session:  After the first 5 minutes, focus on the **9:15 AM–10:30 AM** window. During this time, look for breakout setups at key support/resistance levels, especially when paired with high volume or momentum indicators. This is when many institutions make large trades, so price action tends to be more volatile and predictable.
 3. Afternoon Session:  From  12:30 PM–2:55 PM,  the market might experience lower volatility, making it ideal for  scalping  or  range-bound  strategies. You could look for reversals or fading strategies if the market becomes too quiet.
 Conclusion: 
As a day trader, you can use this script to:
-  Track and react to key price levels  during the first 5 minutes.
 - Focus on high volatility  in the morning session (9:15–10:30 AM) and **be cautious** during the afternoon.
-  Use session-based timing  to adjust your strategies based on the time of day.
Turtle Soup ICT Strategy [TradingFinder] FVG + CHoCH/CSD🔵 Introduction 
The ICT Turtle Soup trading setup, designed in the ICT style, operates by hunting or sweeping liquidity zones to exploit false breakouts and failed breakouts in key liquidity Zones, such as recent highs, lows, or major support and resistance levels. 
This setup identifies moments when the price breaches these liquidity zones, triggering stop orders placed (Stop Hunt) by other traders, and then quickly reverses direction. These movements are often associated with liquidity sweeps that create temporary market imbalances.
 The reversal is typically confirmed by one of three structural shifts : a Market Structure Shift (MSS), a Change of Character (CHoCH), or a break of the Change in State of Delivery (CISD). Each of these structural shifts provides a reliable signal to interpret market intent and align trading decisions with the expected price movement. After the structural shift, the price frequently pullback to a Fair Value Gap (FVG), offering a precise entry point for trades.
By integrating key concepts such as liquidity, liquidity sweeps, stop order activation, structural shifts (MSS, CHoCH, CISD), and price imbalances, the ICT Turtle Soup setup enables traders to identify reversal points and key entry zones with high accuracy. 
This strategy is highly versatile, making it applicable across markets such as forex, stocks, cryptocurrencies, and futures. It offers traders a robust and systematic approach to understanding price movements and optimizing their trading strategies
🟣 Bullish and Bearish Setups 
 
 Bullish Setup : The price first sweeps below a Sell-Side Liquidity (SSL) zone, then reverses upward after forming an MSS or CHoCH, and finally pulls back to an FVG, creating a buying opportunity.
  
 Bearish Setup : The price first sweeps above a Buy-Side Liquidity (BSL) zone, then reverses downward after forming an MSS or CHoCH, and finally pulls back to an FVG, creating a selling opportunity.
 
  
🔵 How to Use 
To effectively utilize the ICT Turtle Soup trading setup, begin by identifying key liquidity zones, such as recent highs, lows, or support and resistance levels, in higher timeframes. 
Then, monitor lower timeframes for a Liquidity Sweep and confirmation of a Market Structure Shift (MSS) or Change of Character (CHoCH). 
After the structural shift, the price typically pulls back to an FVG, offering an optimal trade entry point. Below, the bullish and bearish setups are explained in detail.
🟣 Bullish Turtle Soup Setup 
 
 Identify Sell-Side Liquidity (SSL) : In a higher timeframe (e.g., 1-hour or 4-hour), identify recent price lows or support levels that serve as SSL zones, typically the location of stop-loss orders for traders.
 Observe a Liquidity Sweep : On a lower timeframe (e.g., 15-minute or 30-minute), the price must move below one of these liquidity zones and then reverse. This movement indicates a liquidity sweep.
 Confirm Market Structure Shift : After the price reversal, look for a structural shift (MSS or CHoCH) indicated by the formation of a Higher Low (HL) and Higher High (HH).
 Enter the Trade : Once the structural shift is confirmed, the price typically pulls back to an FVG. Enter a buy trade in this zone, set a stop-loss slightly below the recent low, and target Buy-Side Liquidity (BSL) in the higher timeframe for profit.
 
  
🟣 Bearish Turtle Soup Setup 
 
 Identify Buy-Side Liquidity (BSL) : In a higher timeframe, identify recent price highs or resistance levels that serve as BSL zones, typically the location of stop-loss orders for traders.
 Observe a Liquidity Sweep : On a lower timeframe, the price must move above one of these liquidity zones and then reverse. This movement indicates a liquidity sweep.
 Confirm Market Structure Shift : After the price reversal, look for a structural shift (MSS or CHoCH) indicated by the formation of a Lower High (LH) and Lower Low (LL).
 Enter the Trade : Once the structural shift is confirmed, the price typically pulls back to an FVG. Enter a sell trade in this zone, set a stop-loss slightly above the recent high, and target Sell-Side Liquidity (SSL) in the higher timeframe for profit.
 
  
🔵 Settings 
 Higher TimeFrame Levels : This setting allows you to specify the higher timeframe (e.g., 1-hour, 4-hour, or daily) for identifying key liquidity zones.
 Swing period : You can set the swing detection period.
 Max Swing Back Method : It is in two modes "All" and "Custom". If it is in "All" mode, it will check all swings, and if it is in "Custom" mode, it will check the swings to the extent you determine.
 Max Swing Back : You can set the number of swings that will go back for checking.
 FVG Length : Default is 120 Bar.
 MSS Length : Default is 80 Bar.
 FVG Filter : This refines the number of identified FVG areas based on a specified algorithm to focus on higher quality signals and reduce noise.
 Types of FVG filter s:
 
 Very Aggressive Filter: Adds a condition where, for an upward FVG, the last candle's highest price must exceed the middle candle's highest price, and for a downward FVG, the last candle's lowest price must be lower than the middle candle's lowest price. This minimally filters out FVGs.
 Aggressive Filter: Builds on the Very Aggressive mode by ensuring the middle candle is not too small, filtering out more FVGs.
 Defensive Filter: Adds criteria regarding the size and structure of the middle candle, requiring it to have a substantial body and specific polarity conditions, filtering out a significant number of FVGs.
 Very Defensive Filter: Further refines filtering by ensuring the first and third candles are not small-bodied doji candles, retaining only the highest quality signals.
 
In the indicator settings, you can customize the visibility of various elements, including MSS, FVG, and HTF Levels. Additionally, the color of each element can be adjusted to match your preferences. This feature allows traders to tailor the chart display to their specific needs, enhancing focus on the key data relevant to their strategy.
🔵 Conclusion 
The ICT Turtle Soup trading setup is a powerful tool in the ICT style, enabling traders to exploit false breakouts in key liquidity zones. By combining concepts of liquidity, liquidity sweeps, market structure shifts (MSS and CHoCH), and pullbacks to FVG, this setup helps traders identify precise reversal points and execute trades with reduced risk and increased accuracy.
With applications across various markets, including forex, stocks, crypto, and futures, and its customizable indicator settings, the ICT Turtle Soup setup is ideal for both beginner and advanced traders. By accurately identifying liquidity zones in higher timeframes and confirming structure shifts in lower timeframes, this setup provides a reliable strategy for navigating volatile market conditions. 
Ultimately, success with this setup requires consistent practice, precise market analysis, and proper risk management, empowering traders to make smarter decisions and achieve their trading goals.
Adaptive Volatility-Scaled Oscillator [AVSO] (Zeiierman)█  Overview 
The  Adaptive Volatility-Scaled Oscillator (AVSO)  is a dynamic trading indicator that measures and visualizes volatility-adjusted market behavior. By scaling various metrics (such as volume, price changes, standard deviation, ATR, and Yang-Zhang volatility) and applying adaptive smoothing, AVSO helps traders identify market conditions where volatility deviates significantly from the norm.
This indicator uses standardized scaling (Z-Score logic) to highlight periods of abnormally high or low volatility relative to recent history. With gradient coloring and clear volatility zones, AVSO provides a visually intuitive way to analyze market volatility and adapt trading strategies accordingly.
  
█  How It Works 
⚪  Scaling Metrics:  The indicator scales user-selected metrics (e.g., volume, ATR, standard deviation) relative to the market and price, providing a standardized volatility measure.
⚪  Z-Score Standardization:  The scaled metric is normalized using a Z-Score to measure how far current volatility deviates from its recent mean.
 
 Positive Z-Score:  Above-average volatility.
 Negative Z-Score:  Below-average volatility.
 
⚪  Adaptive Smoothing:  An Adaptive EMA smooths the Z-Score, dynamically adjusting its length based on the strength of the volatility. Stronger deviations result in shorter smoothing, increasing responsiveness.
█  Unique Feature: Yang-Zhang Volatility 
The Yang-Zhang volatility estimator sets this indicator apart by providing a more robust and accurate measure of volatility compared to traditional methods like ATR or standard deviation.
⚪  What Makes Yang-Zhang Volatility Unique? 
 
 Comprehensive Calculation:  It combines overnight price gaps (log returns from the previous close to the current open) and intraday price movements (high, low, and close).
 Accurate for Gapped Markets:  Traditional volatility measures can misrepresent price movement when significant gaps occur between sessions. Yang-Zhang accounts for these gaps, making it highly reliable for assets prone to overnight price jumps, such as stocks, cryptocurrencies, and futures.
 Adaptable to Real Market Conditions : By including both close-to-open returns and intraday volatility, it provides a balanced and adaptive measure that captures the full volatility picture.
 
⚪  Why This Matters to Traders 
 
 Better Volatility Insights:  Yang-Zhang offers a clearer view of true market volatility, especially in markets with price gaps or uneven trading sessions.
 Improved Trade Timing:  By identifying volatility spikes and calm periods more effectively, traders can time their entries and exits with greater confidence.
 
█  How to Use 
 Identify High and Low Volatility 
 
 A high Z-Score (>2) indicates significant market volatility. This can signal momentum-driven moves, breakouts, or areas of increased risk.
 A low Z-Score (<-2) suggests low volatility or a calm market environment. This often occurs before a potential breakout or reversal.
 
  
 Trade Signals 
 
 High Volatility Zones (background highlight):  Monitor for potential breakouts, trend continuations, or reversals.
 Low Volatility Zones:  Anticipate range-bound conditions or upcoming volatility spikes.
 
  
█  Settings 
 
 Source:  Select the price source for scaling calculations (close, high, low, open).
 Metric Measure:   Choose the volatility measure:
 Volume:  Scales raw volume.
 Close:  Uses closing price changes.
 Standard Deviation:  Price dispersion.
 ATR:  Average True Range.
 Yang:  Yang-Zhang volatility estimate.
 Bars to Analyze:  Number of historical bars used to calculate the mean and standard deviation of the scaled metric.
 ATR / Standard Deviation Period:  Lookback period for ATR or Standard Deviation calculation.
 Yang Volatility Period:  Period for the Yang-Zhang volatility estimator.
 Smoothing Period:  Base smoothing length for the adaptive smoothing line.
 
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
simple swing indicator-KTRNSE:NIFTY   
1. Pivot High/Low as Lines:
Purpose: Identifies local peaks (pivot highs) and troughs (pivot lows) in price and draws horizontal lines at these levels.
How it Works:
A pivot high occurs when the price is higher than the surrounding bars (based on the pivotLength parameter).
A pivot low occurs when the price is lower than the surrounding bars.
These pivots are drawn as horizontal lines at the price level of the pivot.
Visualization:
Pivot High: A red horizontal line is drawn at the price level of the pivot high.
Pivot Low: A green horizontal line is drawn at the price level of the pivot low.
Example:
Imagine the price is trending up, and at some point, it forms a peak. The script identifies this peak as a pivot high and draws a red line at the price of that peak. Similarly, if the price forms a trough, the script will draw a green line at the low point.
2. Moving Averages (20-day and 50-day):
Purpose: Plots the 20-day and 50-day simple moving averages (SMA) on the chart.
How it Works:
The 20-day SMA smooths the closing price over the last 20 days.
The 50-day SMA smooths the closing price over the last 50 days.
These lines provide an overview of short-term and long-term price trends.
Visualization:
20-day SMA: A blue line showing the 20-day moving average.
50-day SMA: An orange line showing the 50-day moving average.
Example:
When the price is above both moving averages, it indicates an uptrend. If the price crosses below these averages, it might signal a downtrend.
3. Supertrend:
Purpose: The Supertrend is an indicator based on the Average True Range (ATR) and is used to track the market trend.
How it Works:
When the market is in an uptrend, the Supertrend line will be green.
When the market is in a downtrend, the Supertrend line will be red.
Visualization:
Uptrend: The Supertrend line will be plotted in green.
Downtrend: The Supertrend line will be plotted in red.
Example:
If the price is above the Supertrend, the market is considered to be in an uptrend, and if the price is below the Supertrend, the market is in a downtrend.
4. Momentum (Rate of Change):
Purpose: Measures the rate at which the price changes over a set period, showing if the momentum is positive or negative.
How it Works:
The Rate of Change (ROC) measures how much the price has changed over a certain number of periods (e.g., 14).
Positive ROC indicates upward momentum, and negative ROC indicates downward momentum.
Visualization:
Positive ROC: A purple line is plotted above the zero line.
Negative ROC: A purple line is plotted below the zero line.
Example:
If the ROC line is above zero, it means the price is increasing, suggesting bullish momentum. If the ROC is below zero, it indicates bearish momentum.
5. Volume:
Purpose: Displays the volume of traded assets, giving insight into the strength of price movements.
How it Works:
The script will color the volume bars based on whether the price closed higher or lower than the previous bar.
Green bars indicate bullish volume (closing price higher than the previous bar), and red bars indicate bearish volume (closing price lower than the previous bar).
Visualization:
Bullish Volume: Green volume bars when the price closes higher.
Bearish Volume: Red volume bars when the price closes lower.
Example:
If you see a green volume bar, it suggests that the market is participating in an uptrend, and the price has closed higher than the previous period. Red bars indicate a downtrend or selling pressure.
6. MACD (Moving Average Convergence Divergence):
Purpose: The MACD is a trend-following momentum indicator that shows the relationship between two moving averages of the price.
How it Works:
The MACD Line is the difference between the 12-period EMA (Exponential Moving Average) and the 26-period EMA.
The Signal Line is the 9-period EMA of the MACD Line.
The MACD Histogram shows the difference between the MACD line and the Signal line.
Visualization:
MACD Line: A blue line representing the difference between the 12-period and 26-period EMAs.
Signal Line: An orange line representing the 9-period EMA of the MACD line.
MACD Histogram: A red or green histogram that shows the difference between the MACD line and the Signal line.
Example:
When the MACD line crosses above the Signal line, it’s considered a bullish signal. When the MACD line crosses below the Signal line, it’s considered a bearish signal.
Full Chart Example:
Imagine you're looking at a price chart with all the indicators:
Pivot High/Low Lines are drawn as red and green horizontal lines.
20-day and 50-day SMAs are plotted as blue and orange lines, respectively.
Supertrend shows a green or red line indicating the trend.
Momentum (ROC) is shown as a purple line oscillating around zero.
Volume bars are green or red based on whether the close is higher or lower.
MACD appears as a blue line and orange line, with a red or green histogram showing the MACD vs. Signal line difference.
How the Indicators Work Together:
Trend Confirmation: If the price is above the Supertrend line and both SMAs are trending up, it indicates a strong bullish trend.
Momentum: If the ROC is positive and the MACD line is above the Signal line, it further confirms bullish momentum.
Volume: Increasing volume, especially with green bars, suggests that the trend is being supported by active participation.
By using these combined indicators, you can get a comprehensive view of the market's trend, momentum, and potential reversal points (via pivot highs and lows).
Previous Daily Candle The Previous Daily Candle  indicator is a powerful tool designed to enhance your intraday trading by providing clear visual cues of the previous day's price action. By outlining the high, low, open, and close of the previous daily candle and adding a middle dividing line, this indicator offers valuable context to inform your trading decisions.
🎯 Purpose
Visual Clarity: Highlight the key levels from the previous day's price movement directly on your intraday charts.
Trend Confirmation: Quickly identify bullish or bearish sentiment based on the previous day's candle structure.
Support and Resistance: Use the outlined high and low as potential support and resistance levels for your trading strategies.
Customizable Visualization: Tailor the appearance of the outlines and middle line to fit your trading style and chart aesthetics.
🛠️ Features
Outlined Candle Structure:
High and Low Lines: Clearly mark the previous day's high and low with customizable colors and line widths.
Open and Close Representation: Visualize the previous day's open and close through the outlined structure.
Middle Dividing Line:
Average Price Level: A horizontal line divides the candle in half, representing the average of the open and close prices.
Customizable Appearance: Adjust the color and thickness to distinguish it from the high and low outlines.
Bullish and Bearish Differentiation:
Color-Coded Outlines: Automatically change the outline color based on whether the previous day's candle was bullish (green by default) or bearish (red by default).
Enhanced Visual Feedback: Quickly assess market sentiment with intuitive color cues.
Customization Options:
Outline Colors: Choose distinct colors for bullish and bearish candle outlines to match your chart's color scheme.
Middle Line Color: Select a color that stands out or blends seamlessly with your existing chart elements.
Line Width Adjustment: Modify the thickness of all lines to ensure visibility without cluttering the chart.
Transparent Candle Body:
Non-Intrusive Display: The indicator only draws the outlines and middle line, keeping the candle body transparent to maintain the visibility of your primary chart data.
⚙️ How It Works
Data Retrieval: The indicator fetches the previous day's open, high, low, and close prices using TradingView's request.security function.
Candle Analysis: Determines whether the previous day's candle was bullish or bearish by comparing the close and open prices.
Dynamic Drawing: Upon the start of a new day, the indicator deletes the previous outlines and redraws them based on the latest data.
Time Synchronization: Accurately aligns the outlines with the corresponding time periods on your intraday chart.
📈 How to Use
Add to Chart:
Open TradingView and navigate to the Pine Editor.
Paste the provided Pine Script code into the editor.
Click on Add to Chart to apply the indicator.
Customize Settings:
Access the indicator's settings by clicking the gear icon next to its name on the chart.
Adjust the Bullish Outline Color, Bearish Outline Color, Middle Line Color, and Outline Width to your preference.
Interpret the Lines:
Bullish Candle: If the previous day's close is higher than its open, the outlines will display in the bullish color (default green).
Bearish Candle: If the previous day's close is lower than its open, the outlines will display in the bearish color (default red).
Middle Line: Represents the midpoint between the open and close, providing a quick reference for potential support or resistance.
Integrate with Your Strategy:
Use the high and low outlines as potential entry or exit points.
Combine with other indicators for confirmation to strengthen your trading signals.
Advanced Physics Financial Indicator Each component represents a scientific theory and is applied to the price data in a way that reflects key principles from that theory.
Detailed Explanation
1. Fractal Geometry - High/Low Signal
Concept: Fractal geometry studies self-similar patterns that repeat at different scales. In markets, fractals can be used to detect recurring patterns or turning points.
Implementation: The script detects pivot highs and lows using ta.pivothigh and ta.pivotlow, representing local turning points in price. The fractalSignal is set to 1 for a pivot high, -1 for a pivot low, and 0 if there is no signal. This logic reflects the cyclical, self-similar nature of price movements.
Practical Use: This signal is useful for identifying local tops and bottoms, allowing traders to spot potential reversals or consolidation points where fractal patterns emerge.
2. Quantum Mechanics - Probabilistic Monte Carlo Simulation
Concept: Quantum mechanics introduces uncertainty and probability into systems, much like how future price movements are inherently uncertain. Monte Carlo simulations are used to model a range of possible outcomes based on random inputs.
Implementation: In this script, we simulate 100 random outcomes by generating a random number between -1 and 1 for each iteration. These random values are stored in an array, and the average of these values is calculated to represent the Quantum Signal.
Practical Use: This probabilistic signal provides a sense of randomness and uncertainty in the market, reflecting the possibility of price movement in either direction. It simulates the market’s chaotic nature by considering multiple possible outcomes and their average.
3. Thermodynamics - Efficiency Ratio Signal
Concept: Thermodynamics deals with energy efficiency and entropy in systems. The efficiency ratio in financial terms can be used to measure how efficiently the price is moving relative to volatility.
Implementation: The Efficiency Ratio is calculated as the absolute price change over n periods divided by the sum of absolute changes for each period within n. This ratio shows how much of the price movement is directional versus random, mimicking the concept of efficiency in thermodynamic systems.
Practical Use: A high efficiency ratio suggests that the market is trending smoothly (high efficiency), while a low ratio indicates choppy, non-directional movement (low efficiency, or high entropy).
4. Chaos Theory - ATR Signal
Concept: Chaos theory studies how complex systems are highly sensitive to initial conditions, leading to unpredictable behavior. In markets, chaotic price movements can often be captured through volatility indicators.
Implementation: The script uses a very long ATR period (1000) to reflect slow-moving chaos over time. The Chaos Signal is computed by measuring the deviation of the current price from its long-term average (SMA), normalized by ATR. This captures price deviations over time, hinting at chaotic market behavior.
Practical Use: The signal measures how far the price deviates from its long-term average, which can signal the degree of chaos or extreme behavior in the market. High deviations indicate chaotic or volatile conditions, while low deviations suggest stability.
5. Network Theory - Correlation with BTC
Concept: Network theory studies how different components within a system are interconnected. In markets, assets are often correlated, meaning that price movements in one asset can influence or be influenced by another.
Implementation: This indicator calculates the correlation between the asset’s price and the price of Bitcoin (BTC) over 30 periods. The Network Signal shows how connected the asset is to BTC, reflecting broader market dynamics.
Practical Use: In a highly correlated market, BTC can act as a leading indicator for other assets. A strong correlation with BTC might suggest that the asset is likely to move in line with Bitcoin, while a weak or negative correlation might indicate that the asset is moving independently.
6. String Theory - RSI & MACD Interaction
Concept: String theory attempts to unify the fundamental forces of nature into a single framework. In trading, we can view the RSI and MACD as interacting forces that provide insights into momentum and trend.
Implementation: The script calculates the RSI and MACD and combines them into a single signal. The formula for String Signal is (RSI - 50) / 100 + (MACD Line - Signal Line) / 100, normalizing both indicators to a scale where their contributions are additive. The RSI represents momentum, and MACD shows trend direction and strength.
Practical Use: This signal helps in detecting moments where momentum (RSI) and trend strength (MACD) align, giving a clearer picture of the asset's direction and overbought/oversold conditions. It unifies these two indicators to create a more holistic view of market behavior.
7. Fluid Dynamics - On-Balance Volume (OBV) Signal
Concept: Fluid dynamics studies how fluids move and flow. In markets, volume can be seen as a "flow" that drives price movement, much like how fluid dynamics describe the flow of liquids.
Implementation: The script uses the OBV (On-Balance Volume) indicator to track the cumulative flow of volume based on price changes. The signal is further normalized by its moving average to smooth out fluctuations and make it more reflective of price pressure over time.
Practical Use: The Fluid Signal shows how the flow of volume is driving price action. If the OBV rises significantly, it suggests that there is strong buying pressure, while a falling OBV indicates selling pressure. It’s analogous to how pressure builds in a fluid system.
8. Final Signal - Combining All Physics-Based Indicators
Implementation: Each of the seven physics-inspired signals is combined into a single Final Signal by averaging their values. This approach blends different market insights from various scientific domains, creating a comprehensive view of the market’s condition.
Practical Use: The final signal gives you a holistic, multi-dimensional view of the market by merging different perspectives (fractal behavior, quantum probability, efficiency, chaos, correlation, momentum/trend, and volume flow). This approach helps traders understand the market's dynamics from multiple angles, offering deeper insights than any single indicator.
9. Color Coding Based on Signal Extremes
Concept: The color of the final signal plot dynamically reflects whether the market is in an extreme state.
Implementation: The signal color is determined using percentiles. If the Final Signal is in the top 55th percentile of its range, the signal is green (bullish). If it is between the 45th and 55th percentiles, it is orange (neutral). If it falls below the 45th percentile, it is red (bearish).
Practical Use: This visual representation helps traders quickly identify the strength of the signal. Bullish conditions (green), neutral conditions (orange), and bearish conditions (red) are clearly distinguished, simplifying decision-making.
Pivot Data [QuantVue]The  Pivot Data Indicator  is designed to provide traders with valuable insights by identifying and analyzing pivot points on the price chart. It calculates both pivot highs and lows, then presents detailed statistics on the distance and time between these pivots.
a pivot point is defined as a specific point on the chart where the price either reaches a high or a low, with no bars higher or lower than it for a set number of bars on both sides (left and right). Essentially, it's a local high or low point, with the market moving in the opposite direction after the pivot forms.
 For example: 
 
 A pivot high occurs when there are no bars with higher prices for a specified number of bars before and after that point.
 A pivot low occurs when there are no bars with lower prices for the same number of bars on either side.
 
The number of bars to the left and right is adjustable via the Pivot Lookback Bars setting, allowing you to define how many bars are used to determine these pivot points.
 Key features include: 
Pivot Highs and Lows Identification: Automatically marks significant pivot highs and lows based on a user-defined lookback period, helping traders identify potential trend reversals or continuation points.
  
Prediction Labels: Provides forecasted pivot levels based on historical pivot price and time patterns, with options to show predictions for pivot highs, lows, or any pivot point.
  
Customizable Table Display: Displays a table summarizing important statistics, such as the average price percentage and the number of bars between pivots, along with the distance and time from the most recent pivot.
  
Traders can use this tool to map out potential levels of support and resistance based on historical data on pivot points. 
Internal Bar Strength IBS [Anan]This indicator calculates and displays the Internal Bar Strength (IBS) along with its moving average. The IBS is a measure that represents where the closing price is relative to the high-low range of a given period.
 █ Main Formula 
The core of this indicator is the Internal Bar Strength (IBS) calculation. The basic IBS formula is:
 ibs = (close - low) / (high - low) 
I enhanced the original formula by incorporating a user-defined length parameter. This modification allows for greater flexibility in analysis and interpretation. The extended version enables users to adjust the indicator's length according to their specific needs or market conditions. Notably, setting the length parameter to 1 reproduces the behavior of the original formula, maintaining backward compatibility while offering expanded functionality:
 ibs = (close - ta.lowest(low, ibs_length)) / (ta.highest(high, ibs_length) - ta.lowest(low, ibs_length)) 
Where:
- `close` is the closing price of the current bar
- `lowest low` is the lowest low price over the specified IBS length
- `highest high` is the highest high price over the specified IBS length
 █ Key Features 
- Calculates IBS using a user-defined length
- Applies a moving average to the IBS values
- Offers multiple moving average types
- Includes optional Bollinger Bands or Donchian Channel overlays
- Visualizes bull and bear areas
 █ Inputs 
- IBS Length: The period used for IBS calculation
- MA Type: The type of moving average applied to IBS (options: SMA, EMA, SMMA, WMA, VWMA, Bollinger Bands, Donchian)
- MA Length: The period used for the moving average calculation
- BB StdDev: Standard deviation multiplier for Bollinger Bands 
 █ How to Use and Interpret 
1. IBS Line Interpretation:
   - IBS values range from 0 to 1
   - Values close to 1 indicate the close was near the high, suggesting a bullish sentiment
   - Values close to 0 indicate the close was near the low, suggesting a bearish sentiment
   - Values around 0.5 suggest the close was near the middle of the range
2. Overbought/Oversold Conditions:
   - IBS values above 0.8 (teal zone) may indicate overbought conditions
   - IBS values below 0.2 (red zone) may indicate oversold conditions
   - These zones can be used to identify potential reversal points
3. Trend Identification:
   - Consistent IBS values above 0.5 may indicate an uptrend
   - Consistent IBS values below 0.5 may indicate a downtrend
4. Using Moving Averages:
   - The yellow MA line can help smooth out IBS fluctuations
   - Crossovers between the IBS and its MA can signal potential trend changes
5. Bollinger Bands/Donchian Channel:
   - When enabled, these can provide additional context for overbought/oversold conditions
   - IBS touching or exceeding the upper band may indicate overbought conditions
   - IBS touching or falling below the lower band may indicate oversold conditions
Remember that no single indicator should be used in isolation. Always combine IBS analysis with other technical indicators, price action analysis, and broader market context for more reliable trading decisions.
Dynamic Support & Resistance Tracker with MTFDynamic Support & Resistance Tracker with Weekly, Monthly & Daily Levels
The Dynamic Support & Resistance Tracker is designed to help traders identify key support and resistance levels across multiple timeframes, enhancing market analysis and decision-making. This indicator calculates and plots support and resistance levels for daily, weekly, and monthly periods, along with extension lines that provide insights into potential price targets.
Key Features:
Multi-Timeframe Analysis:
Daily Levels: Identifies the high, low, and midpoint for each trading day. These levels help traders recognize important price points for short-term trading strategies.
Weekly Levels: Plots the high, low, and midpoint for each week. This feature is valuable for swing traders who need to understand broader market trends.
Monthly Levels: Displays the high, low, and midpoint for each month, which is essential for long-term investors.
Extension Lines:
Calculates extension lines beyond the standard support and resistance levels to help anticipate potential price targets and reversals. These extensions are based on the distance between the high/low and midpoint levels.
Real-Time Updates:
Automatically updates the levels based on the most recent market data, ensuring traders have the most current information for their analysis.
Clear Visuals:
The indicator provides clearly labeled and color-coded lines for easy identification of key levels, improving the visual clarity of market analysis.
How It Works:
Daily, Weekly, and Monthly Levels: The indicator calculates the high, low, and midpoint levels for daily, weekly, and monthly timeframes and plots them on the chart. These levels serve as potential areas of support and resistance where price action may react.
Extension Lines: The extension lines are calculated based on the distance between the high/low and midpoint levels, projecting potential areas where price may find support or resistance beyond the standard levels.
Automatic Updates: The indicator continuously updates the plotted levels based on the latest market data, providing real-time insights.
Benefits:
Improved Market Analysis: By providing a clear view of support and resistance levels across multiple timeframes, this indicator helps traders understand market trends and price movements more effectively.
Informed Trading Decisions: The detailed plotting of levels and extensions allows traders to make more informed decisions, enhancing their trading strategies.
Versatility: Suitable for various trading styles, including intraday trading, swing trading, and long-term investing.
Instructions for Use:
Analyze the Levels: Observe the plotted high, low, and mid-levels for daily, weekly, and monthly timeframes.
Plan Your Trades: Use the identified support and resistance levels to set your entry and exit points, stop-losses, and profit targets.
Monitor the Market: Stay updated with real-time adjustments of the levels, ensuring you always have the latest market information.
Note: This indicator is designed to enhance your trading analysis by providing clear and reliable support and resistance levels. However, it should be used as part of a comprehensive trading strategy and not as the sole basis for trading decisions.
Reversal Zones with SignalsThe "Reversal Zones with Signals" indicator is an advanced technical analysis tool designed to help traders identify potential market reversal points. By integrating Relative Strength Index (RSI), moving averages, and swing high/low detection, this indicator provides traders with clear visual cues for potential buy and sell opportunities.
Key Features and Benefits
Integration of Multiple Technical Analysis Tools:
The indicator seamlessly combines RSI, moving averages, and swing high/low detection. This multi-faceted approach enhances the reliability of the signals by confirming potential reversals through different technical analysis perspectives.
Customizable Parameters:
Users can adjust the sensitivity of the moving averages, the RSI overbought and oversold levels, and the length of the reversal zones. This flexibility allows traders to tailor the indicator to fit their specific trading strategies and market conditions.
Clear Visual Signals:
Buy and sell signals are plotted directly on the chart as easily recognizable green and red labels. This visual clarity simplifies the process of identifying potential entry and exit points, enabling traders to act quickly and decisively.
Reversal Zones:
The indicator plots reversal zones based on swing highs and lows in conjunction with RSI conditions. Green lines represent potential support levels (zone bottoms), while red lines represent potential resistance levels (zone tops). These zones provide traders with clear areas where price reversals are likely to occur.
Automated Alerts:
Custom alerts can be set for both buy and sell signals, providing real-time notifications when potential trading opportunities arise. This feature ensures that traders do not miss critical market moves.
How It Works
RSI Calculation:
The Relative Strength Index (RSI) is calculated to determine overbought and oversold conditions. When RSI exceeds the overbought threshold, it indicates that the market may be overbought, and when it falls below the oversold threshold, it indicates that the market may be oversold. This helps in identifying potential reversal points.
Swing High/Low Detection:
Swing highs and lows are detected using a specified lookback period. These points represent significant price levels where reversals are likely to occur. Swing highs are detected using the ta.pivothigh function, and swing lows are detected using the ta.pivotlow function.
Reversal Zones:
Reversal zones are defined by plotting lines at swing high and low levels when RSI conditions are met. These zones serve as visual cues for potential support and resistance areas, providing a structured framework for identifying reversal points.
Buy and Sell Signals:
Buy signals are generated when the price crosses above a defined reversal zone bottom, indicating a potential upward reversal. Sell signals are generated when the price crosses below a defined reversal zone top, indicating a potential downward reversal. These signals are further confirmed by the presence of bullish or bearish engulfing patterns.
Plotting and Alerts:
The indicator plots buy and sell signals directly on the chart with corresponding labels. Additionally, alerts can be set up to notify the user when a signal is generated, ensuring timely action.
Originality and Usefulness
Innovative Integration of Technical Tools:
The "Reversal Zones with Signals" indicator uniquely combines multiple technical analysis tools into a single, cohesive indicator. This integration provides a comprehensive view of market conditions, enhancing the accuracy of the signals and offering a robust tool for traders.
Enhanced Trading Decisions:
By providing clear and actionable signals, the indicator helps traders make better-informed decisions. The visualization of reversal zones and the integration of RSI and moving averages ensure that traders have a solid framework for identifying potential reversals.
Flexibility and Customization:
The customizable parameters allow traders to adapt the indicator to different trading styles and market conditions. This flexibility ensures that the indicator can be used effectively by a wide range of traders, from beginners to advanced professionals.
Clear and User-Friendly Interface:
The indicator's design prioritizes ease of use, with clear visual signals and intuitive settings. This user-friendly approach makes it accessible to traders of all experience levels.
Real-Time Alerts:
The ability to set up custom alerts ensures that traders are notified of potential trading opportunities as they arise, helping them to act quickly and efficiently.
Versatility Across Markets:
The indicator is suitable for use in various financial markets, including stocks, forex, and cryptocurrencies. Its adaptability across different asset classes makes it a valuable addition to any trader's toolkit.
How to Use
Adding the Indicator:
Add the "Reversal Zones with Signals" indicator to your chart.
Adjust the parameters (Sensitivity, RSI OverBought Value, RSI OverSold Value, Zone Length) to match your trading strategy and market conditions.
Interpreting Signals:
Buy Signal: A green "BUY" label appears below a bar, indicating a potential buying opportunity based on the detected reversal zone and price action.
Sell Signal: A red "SELL" label appears above a bar, indicating a potential selling opportunity based on the detected reversal zone and price action.
Setting Alerts:
Set alerts for buy and sell signals to receive notifications when potential trading opportunities arise. This ensures timely action and helps traders stay informed about critical market moves.
CPR by MTThe CPR indicator, or Central Pivot Range indicator, is a technical analysis tool used in trading to identify potential support and resistance levels based on the price action of a security. Developed by pivot point theory, it is particularly popular among day traders and swing traders. The CPR indicator consists of three lines:
1. **Pivot Point (PP):** This is the central line and is calculated as the average of the high, low, and closing prices from the previous trading period.
   \ 
2. **Top Central Pivot (TC):** This is calculated by subtracting the low from the PP and then adding the result to the PP.
   \ 
3. **Bottom Central Pivot (BC):** This is calculated by subtracting the high from the PP and then adding the result to the PP.
   \ 
### How to Use the CPR Indicator
- **Trend Identification:** A wide CPR range indicates low volatility and a potential sideways or consolidation phase. A narrow CPR range indicates high volatility and a potential strong trending move.
- **Support and Resistance:** The top and bottom central pivots act as immediate resistance and support levels. If the price is above the TC, it indicates a bullish sentiment, while if it is below the BC, it indicates a bearish sentiment.
- **Entry and Exit Points:** Traders use the CPR lines to determine optimal entry and exit points. For example, if the price breaks above the TC and sustains, it may signal a buy opportunity, whereas a drop below the BC may signal a sell opportunity.
### Practical Example
Suppose a stock had a high of $105, a low of $95, and a closing price of $100 on the previous day. The CPR levels for the next day would be calculated as follows:
1. **Pivot Point (PP):**
   \ 
2. **Top Central Pivot (TC):**
   \ 
3. **Bottom Central Pivot (BC):**
   \ 
The levels for the next day would be PP = $100, TC = $110, and BC = $90. Traders would then use these levels to assess potential trading strategies based on where the price moves relative to these levels.
### Conclusion
The CPR indicator is a useful tool for traders looking to understand market conditions and make informed decisions about entry and exit points. Its effectiveness comes from its ability to highlight key price levels derived from historical price data, helping traders predict potential market movements.
20,200SMA,PDHL,15 minute ORBSimple Moving Averages (SMAs):
The script calculates three SMAs: SMA 20 High, SMA 20 Low, and SMA 200 Close. These moving averages are widely used in technical analysis to smooth out price data and identify trends.
The SMA for the high price (SMA 20 High) is calculated based on the 20-period moving average of the high prices.
Similarly, the SMA for the low price (SMA 20 Low) is calculated based on the 20-period moving average of the low prices.
The SMA for the close price (SMA 200 Close) is calculated based on the 200-period moving average of the closing prices.
Each SMA is plotted on the chart, and their colors are determined based on whether the current close price is above or below each respective SMA.
Conditional Coloring:
The script employs conditional coloring to visually highlight whether the close price is above or below each SMA.
If the close price is below the SMA 20 High, it's plotted in red; otherwise, it's plotted in green.
Similarly, the SMA 20 Low and SMA 200 Close are plotted with conditional colors based on the relationship between the close price and each respective SMA.
Previous Day's Data:
The script retrieves and plots the high, low, and close prices of the previous trading day.
This provides traders with valuable information about the previous day's market behavior, which can influence trading decisions.
Opening 15-minute Range Breakout:
The script calculates the high and low prices during the first 15 minutes of each trading day.
These prices represent the opening range for the day.
It then determines whether the current close price is above or below this opening range and plots it accordingly.
This breakout strategy helps traders identify potential trading opportunities based on early price movements.
By integrating these components, the script offers traders a comprehensive analysis of market trends, previous day's performance, and potential breakout opportunities. Its originality lies in the combination of these features into a single, easy-to-use indicator, providing valuable insights for trading decisions.
yatsThis is a helper indicator for "yats" (Yet Another Trading Strategy). 
This is a grouping of several indicators in one to help with a very basic trend following strategy. In order to utilize this indicator, it is best to have your chart set to a Line chart.
 How to use: 
This is a basic trend strategy in which the trader will enter or reverse their position on the break of the trend. 
With the chart set to line and the source set to close, a basic line with peaks and valleys is displayed.
When the line peaks, then retreats, this is a potential setup for a long position. The trader is to wait for a valley (lower point) to be formed and then for the previous peak to be broken.
The timeframe continuity labels in the lower right of the chart help to ensure the position taken is in line with the higher timeframe trend.
 Example scenario (long): 
Chart is set to 1H timeframe. Timeframe continuity indicator will have labels for 1H, 4H, Day, WK, MN, and QTR. Chart shows a peak at a close price of 5 then the next bar sets a valley at a close price of 4.
Next bar forms and sets a close price of 6. Timeframe continuity labels are green for 1H, 4H, Day, and WK. (At least three higher timeframes should match the direction of the desired trade.) 
This is a signal to go long as the previous peak was broken and timeframe continuity is in the direction
of the trade (long). Initial conservative stoploss should be placed at the previous valley (4). A wider stoploss could be placed at the low created when the close was 4. This is made visible by the default red line
when Candle Highs and Lows plots are turned on. Stoploss is then trailed up either by each subsequent higher low, OR with each subsequent dip as price moves higher.
A target can be set, but is not an integral part of this strategy.
 Features: 
Full Timeframe Continuity:
In the lower right corner of the chart will be indicators for timeframes greater than or equal to the chart timeframe.
Each one will be Red, Green, or White to indicate down, up, or flat. This provides you with the direction of the higher timeframes in real time, before the bar has closed.
 Potential Support/Resistance Points: 
The indicator plots horizontal rays for the previous Day, Week, and Month for the High, Low, and Close. Day = Orange, Week = White, Month = Purple. High and Low are solid lines while Close is a dashed line.
This provides the trader with potential pivot points based on higher timeframe high, low, and close prices. The horizontal rays will automatically move to the right at the start of the newest day, week, or month.
 Candle Highs and Lows: 
Since the chart should be set to Line instead of Candles or Bars, this indicator provides plots that follow the Highs (Green) and Lows (Red) of each 'bar' of the chart timeframe. This has been made configurable
so these lines can be turned off or edited in the settings for those who do not want them on the chart or just want them to look different.
swinglibraryLibrary   "swinglibrary" 
This library is for calculating non-repainting swings for further calculation on them.
These swings can later be drawn, but drawing is not part of this library, only the calculation.
 What do I need to use the library? 
You better include the following constants into your script using this library:
 
int SWING_NO_ACTION         = 0
int SWING_FLIP              = 1
int SWING_FLIP_NEW_SWING    = 2
int SWING_FLIP_UPDATED      = 3
int RELATION_HIGHER         = 1
int RELATION_EQUAL          = 0
int RELATION_LOWER          = -1
 
 Choosing the function, that fits your needs 
This library contains 4 functions for calculating swings, the difference between them are the data you get for every swing point and additional average values for length and duration:
 
  swings()
  swingsR()
  swingsL()
  swingsLDR()
 
The  naming scheme  of these functions is the following:
The base version swings() is only for the swings containing the following swingPoint type:
 swingPoint 
  Fields:
     x (integer) : bar index
     y (float) : price
     hilo (integer)  1 -> high, -1 -> low
and the return type:
 swingReturn 
  Fields:
     swings (array) : array of the last x swing points
     newSwingHigh (integer) : flag to detect changes for swing highs see constants (SWING_NO_ACTION, SWING_FLIP_NEW_SWING, SWING_FLIP_UPDATED)
     newSwingLow (integer) : flag to detect changes for swing lows see constants (SWING_NO_ACTION, SWING_FLIP_NEW_SWING, SWING_FLIP_UPDATED)
The  R  in swingsR() stands for  relation  where the previously shown types do also contain the relation between the swings of the same swing type (highs and lows respectively).
The same goes for  L  in swingsL() for  length  containing the price difference between the current and previous swing point in ticks.
And in the following version swingsLDR() there is also the  duration  between the current and previous point included.
The parameters for the other functions and type definitions include only the ones, that are needed, the "full" version of the function is described here:
 swingsLDR(swingSize, dtbStrength, init, SWING_HISTORY_NUM) 
  Parameters:
     swingSize (int)  This parameter defines the size of the swings to look after, meaning higher values will lead to bigger swings
     dtbStrength (int)  Value between 0 and 100 is a factor (%) to the ATR that is used to calculate equal highs/lows (double tops / bottoms).
Higher values will result in a higher tolerance of price difference between the swings.
     init (bool)  This value is usually set to false on default.
It has a special use case, where we need to reduce memory usage and calculation time on the script using this library by start calculating at x bars back instead of the beginning of the chart.
In this case, we set init = true on the first bar we start calculating the swings on to perform the correct initialization.
     SWING_HISTORY_NUM (int)  This is the max number of swings that are stored in the array, so only the last SWING_HISTORY_NUM swings are stored in the array to reduce the memory usage.
New ones remove the oldest ones like in a ring buffer.
This is also influencing the average duration and average swing length.
 swingPointLDR 
  Fields:
     x (integer) : bar index
     y (float) : price
     hilo (integer) : 1 -> high, -1 -> low
     length (float) : price difference to the previous swing point in ticks
     duration (integer) : duration difference to the previous swing point in number of bars
     relation (integer) : see constants RELATION_HIGHER, RELATION_EQUAL, RELATION_LOWER: reelation to the previous swing points of the same type (previous high or previous low respectively)
 swingReturnLDR 
  Fields:
     swings (array) : array of the last x swing points
     newSwingHigh (integer) : flag to detect changes for swing highs see constants (SWING_NO_ACTION, SWING_FLIP_NEW_SWING, SWING_FLIP_UPDATED)
     newSwingLow (integer) : flag to detect changes for swing lows see constants (SWING_NO_ACTION, SWING_FLIP_NEW_SWING, SWING_FLIP_UPDATED)
     avSwLength (float) : average swing length for the last x swings (depending on the max number of swings)
     avSwingDuration (float) : average swing duration for the last x swings (depending on the max number of swings)
Day First Candle BreakoutR-DFCB V1.5: Day First Candle Breakout
This indicator identifies potential breakout opportunities based on the first candle of the trading day. It considers the high and low of the initial trading range to determine possible entry points, along with the previous day's high and low to gauge the strength of the trend.
Key Features:
Day First Candle Breakout: Analyzes the first candle of the trading day to identify potential breakout scenarios.
Timeframe Selection: Allows users to select the timeframe for analyzing the first candle (e.g., 5, 15, or 60 minutes).
Previous Day and Week High/Low: Displays the high and low of the previous day and week to provide additional context for trading decisions.
Previous Day Trend Strength: Indicates whether the current price is above or below the previous day's high or low, signaling a stronger bullish or bearish trend respectively.
Trading Signals:
Buy Signal: Triggered when the price exceeds the high of the initial trading range after an upward price gap.
Sell Signal: Generated when the price falls below the low of the initial trading range after a downward price gap.
Trend Strength Analysis:
Strong Bullish Trend: If the current price is above the previous day's high, it indicates a stronger bullish trend.
Strong Bearish Trend: If the current price is below the previous day's low, it suggests a stronger bearish trend.
Caveats for Effective Trading:
Extended Trading Ranges: Adjusts support and resistance levels if the initial trading range extends beyond the defined timeframe.
Morning Noise Consideration: Exercises caution during volatile morning sessions to avoid false breakouts and whipsaws.
Pullbacks and Narrow Range Bars: Looks for opportunities during pullbacks or when the price forms narrow range bars to enter trades, reducing the risk of sudden reversals.






















